package com.znufe.exam.viewmodel.admin.question.excelmodel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.znufe.exam.utility.easyexcel.ExcelPatternMsg;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
public class MultipleChoiceFromExcelVM {

    @ExcelProperty(value = "题干（多选题）*", index = 0)
    @ColumnWidth(30)
    private String title;

    @ExcelProperty(value = {"选项A*"}, index = 1)
    @ColumnWidth(15)
    private String optionA;

    @ExcelProperty(value = {"选项B*"}, index = 2)
    @ColumnWidth(15)
    private String optionB;

    @ExcelProperty(value = {"选项C"}, index = 3)
    @ColumnWidth(15)
    private String optionC;

    @ExcelProperty(value = {"选项D"}, index = 4)
    @ColumnWidth(15)
    private String optionD;

    @ExcelProperty(value = {"选项E"}, index = 5)
    @ColumnWidth(15)
    private String optionE;

    @ExcelProperty(value = {"选项F"}, index = 6)
    @ColumnWidth(15)
    private String optionF;

    @ExcelProperty(value = {"是否选A"}, index = 7)
    @ColumnWidth(10)
    private String chooseA;

    @ExcelProperty(value = {"是否选B"}, index = 8)
    @ColumnWidth(10)
    private String chooseB;

    @ExcelProperty(value = {"是否选C"}, index = 9)
    @ColumnWidth(10)
    private String chooseC;

    @ExcelProperty(value = {"是否选D"}, index = 10)
    @ColumnWidth(10)
    private String chooseD;

    @ExcelProperty(value = {"是否选E"}, index = 11)
    @ColumnWidth(10)
    private String chooseE;

    @ExcelProperty(value = {"是否选F"}, index = 12)
    @ColumnWidth(10)
    private String chooseF;

    @ExcelProperty(value = "解析", index= 13)
    @ColumnWidth(30)
    private String analyze;

    @ExcelProperty(value = "分数*", index= 14)
    @ColumnWidth(8)
    @Pattern(regexp = ExcelPatternMsg.NUMBER, message = ExcelPatternMsg.NUMBER_MSG)
    // 要转成Integer类型
    private String score;

    @ExcelProperty(value = "难度", index= 15)
    @ColumnWidth(8)
    @Pattern(regexp = ExcelPatternMsg.NUMBER, message = ExcelPatternMsg.NUMBER_MSG)
    // 要转成Integer类型
    private String difficultVM;

}
